package oauth.test;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import oauth.repository.mapperadd.SpringSecurityMapper;

/**
 * @author Pan JinWen
 * @time 2016年5月16日上午7:04:57
 */

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:mybatis.xml")
// @ContextConfiguration("classpath:*.xml")
public class DBtest
{
	@Autowired
	private SpringSecurityMapper springSecurityMapper;
	// private Long id = (long) 1;

	@Test
	public void run()
	{
		// Users users = new Users();
		// users.setUsername("dsadada");
		// users.setPassword("3123132a");
		// users.setDescn("2131231");
		// int insert = usersMapper.insertSelective(users);
		// Users select = usersMapper.selectByPrimaryKey(id);
		System.out.println(springSecurityMapper.selectUPRByUsername("sa"));

	}

}
